package com.eeds.common.enums;


import com.eeds.common.enums.base.BaseEnum;

/**
 * @author Flying
 * @Description
 * @date 16:18 2018-08-29
 **/
public enum ProjectStatus implements BaseEnum {

    /**
     */
    DELETE(0,"删除"),

    INIT(1,"初始状态"),



    SCENE_INVESTIGATION(21,"现场勘查"),

    POWER_SUPPLY_SCHEME(22,"供电方案"),

    DRAWING_EXAMINATION(23,"图纸审查"),



    INTERVAL_APPROVAL(31,"间隔审批"),

    APPLICATION_FOR_DOUBLE_NUMBER(32,"申请双重编号"),

    DOUBLE_NUMBERING(33,"下达双重编号"),

    INFORM(34,"告知"),

    BLACKOUT_AND_FIRE(35,"停电接火"),

    PROTECTION_FIXED_VALUE_REPORTING(36,"保护定值报送"),

    INTERMEDIATE_INSPECTION(37,"中间检查"),

    COMPLETION_DATA_COLLECTION(38,"竣工资料收集"),



    COMPLETION_ACCEPTANCE(41,"竣工验收"),

    REEXAMINATION(42,"复验"),

    POWER_TRANSMISSION_START_UP(43,"送电启动"),

    USER_EVALUATION(44,"用户评价工作"),

    DATA_ARCHIVING(45,"资料归档"),

    FINISH(100,"完成"),


    ;

    private final Integer value;

    private final String description;


    ProjectStatus(Integer value,String description){
        this.value = value;
        this.description = description;
    }


    public static ProjectStatus valueOf(Integer value) {
        for (ProjectStatus item : values()) {
            if (item.getValue() .equals(value)) {
                return item;
            }
        }
        return null;
    }


    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getDescription() {
        return description;
    }


    public ProjectStatus get(Integer value) {
        return ProjectStatus.valueOf(value);
    }


    @Override
    public String toString() {
        return String.valueOf(this.value);
    }



}
